package ooday01;
//学生类的测试类
public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象
        Student zg = new Student();
        //访问成员变量
        zg.name="张光";
        zg.age=18;
        zg.className="jsd2408";
        zg.stuId="001";
        //调用方法
        zg.study();
        zg.sayHi();
        zg.playWith("cy");

        Student ll = new Student();
        ll.name="李林";
        ll.age=19;
        ll.className="jsd2408";
        ll.stuId="002";
        ll.study();
        ll.sayHi();
        ll.playWith("cy");
        //1)创建了一个学生对象
        //2)给所有成员变量赋默认值
        Student zl = new Student();
        zl.study();
        zl.sayHi();
        zl.playWith("cy");
    }
}
